﻿<UserControl x:Class="DiscoveryLogic.Analytics.Modules.LinkRules.LinkRuleNetworkSelectedEntity"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
   Height="350" Width="450" Loaded="UserControl_Loaded">
    <Border CornerRadius="10">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="35"/>
                <RowDefinition Height="35"/>
                <RowDefinition Height="35"/>
                <RowDefinition Height="35"/>
                <RowDefinition Height="65"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="160"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>

            <Label 
                Grid.Row="0" Grid.Column="0"
                Margin="5" VerticalAlignment="Top">Rule name:</Label>
            <TextBox 
                Grid.Row="0" Grid.Column="1" x:Name="txtRuleName"
                Margin="5" VerticalAlignment="Top" MinWidth="150"/>

            <Label 
                Grid.Row="1" Grid.Column="0"
                Margin="5" VerticalAlignment="Top">Source network:</Label>
            <TextBlock 
                Grid.Row="1" Grid.Column="1" Margin="5"
                x:Name="txtSrcNetwork"  FontWeight="Bold"
                VerticalAlignment="Center" MinWidth="100">Network name/Grant</TextBlock>

            <Label 
                Grid.Row="2" Grid.Column="0"
                Margin="5" VerticalAlignment="Top">Source entities</Label>
            <TextBlock 
                Grid.Row="2" Grid.Column="1" Margin="5"
                x:Name="txtEntityKey" FontWeight="Bold" Foreground="Blue"
                VerticalAlignment="Center" MinWidth="100">264439</TextBlock>


            <Label
                Grid.Row="3" Grid.Column="0" 
                VerticalAlignment="Top"
                Margin="5">Db provider:</Label>
            <ComboBox 
                Grid.Row="3" Grid.Column="1" 
                x:Name="cboDbProvider" Margin="9,0,20,0" VerticalAlignment="Center"></ComboBox>

            <Label 
                Grid.Row="4" Grid.Column="0"
                VerticalAlignment="Top" Margin="5">Connection:</Label>
            <TextBox
                x:Name="txtConnStr" TextWrapping="Wrap" AcceptsReturn="True"
                Grid.Row="4" Grid.Column="1"
                VerticalAlignment="Top" Height="45"
                Margin="9,5,20,0"></TextBox>

            <Label 
                Grid.Row="5" Grid.Column="0"
                VerticalAlignment="Top" Margin="5">SQL:</Label>
            <TextBox
                x:Name="txtSQL" TextWrapping="Wrap" AcceptsReturn="True"
                Grid.Row="5" Grid.Column="1"
                VerticalAlignment="Top" Height="125"
                Margin="9,5,20,0"></TextBox>
        </Grid>
    </Border>
</UserControl>
